home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Re Is it possible to dynamic.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Is it possible to dynamically install/remove a part?
  2. Sent:        3/21/96 8:46 AM
  3. Received:    3/21/96 9:00 AM
  4. From:        lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >I'd like to be able to dynamically install and remove parts from my container
  9. >during runtime. The idea is to have a button that you can press to bring
  10. >parts up that you can then work with, and then remove the parts when you
  11. >are finished.
  12. >
  13. >Any recipes for this? Either OpenDoc or ODF recipes would be fine.
  14. >
  15. >Thanks.
  16. >-- 
  17. >
  18. >--BobC
  19. >
  20. >  Bob Carpenter
  21. >  Boeing Commercial Airplanes
  22. >  bobc@bcstec.ca.boeing.com
  23.  
  24. You need to instantiate a part by calling ODDraft::CreatePart and then 
  25. call FW_CPresentation::Embed with the frame parameter to NULL. Embed with 
  26. automatically create an ODFrame for you. Be careful about refcounting 
  27. when calling ODDraft::CreatePart.
  28.  
  29. .......................................................................
  30.  Henri Lamiraux                                      lamiraux@apple.com
  31.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  32. .......................................................................
  33.  
  34.  
  35.